package com.shu.auth.vo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * 部门Vo
 */
@Getter
@Setter
@ToString
public class DeptVo extends BaseVo{

    private static final long serialVersionUID = 4268979697004063119L;

    private Integer id;
    @NotBlank(message = "部门名称不能为空")
    @Length(max = 15,min = 2,message = "部门名称长度需要在2-15个字之间")
    private String name;

    private Integer parentId=0;
    @NotNull(message = "展示循序不可以为空")
    private Integer seq;
    @Length(max = 150,message = "备注的长度需要150个字以内")
    private String remark;
}
